<template>
  <div >
    <div ref="infoWindow" id="gd_infoWindow" class="animate__animated animate__zoomIn" >
      <div class="close_img" @click="closeInfoWindow"></div>
      <div class="">
        <div class="title">{{data.name}}</div>
      </div>
      <div class="line1">
       <div><img src="../../assets/map/state_w.png" alt="">项目状态 ：<span :style="{color:data.projectSchedule == 9 ? '#15B2F4' : '#FF9D08'}">{{data.projectSchedule == 9?'已完成':'进行中'}}</span></div>
      </div>
      <div class="line1">
        <div><img src="../../assets/map/people_w.png" alt="">项目负责人 ：<span>{{data.proLeadaer_dictText}}</span></div>
      </div>
      <div class="line1">
        <div><img src="../../assets/map/money_w.png" alt="">合同金额 ：<span>{{data.projectAmount}}w</span></div>
      </div>
      <div class="line1">
        <div><img src="../../assets/map/date_w.png" alt="">预计完成时间 ：<span>{{data.preCompDate}}</span></div>
      </div>
      <div class="line1">
        <div><img src="../../assets/map/address_w.png" alt="">项目地址 ：<span>{{data.projectPosition_dictText}}</span></div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "windowInfo",
  props: {
    data: {
      type: Object,
      default: () => {},
    },
  },
  data(){
    return {
      value:''
    }
  },
  mounted() {

  },
  methods:{
    //关闭窗体
    closeInfoWindow() {
      this.$emit("closeInfoWindow");
      // this.$parent.$parent.map.clearInfoWindow();
    },
  }
}
</script>
<style lang="scss" scoped>
#gd_infoWindow {
  position: relative;
  //top: 100px;
  min-height: 229px;
  min-width: 342px;
  background: url("../../assets/map/projectWindow_bc.png") no-repeat;
  background-size: 100% 100%;
  padding-left: 20px;
  box-sizing: border-box;
  .title{
    height: 48px;
    line-height: 48px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
  }
  .close_img {
    cursor: pointer;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 24px;
    height: 24px;
  }
  .line1{
    margin-bottom: 10px;
    font-size: 14px;
    span {
      //display: inline;
      font-weight: 700;
      //cursor: pointer;
      background: linear-gradient(-0deg, #15b2f4 100%, #45faff 100%);
      -webkit-background-clip: text;
      color: transparent;
      //color: #1c9fd5;
      //color: #FFFFFF;
    }
    img{
      width: 14px;
      height: 14px;
      vertical-align: middle;
      margin-right: 4px;
    }
  }
}
</style>
